set shell_script to display dialog "please input shell script" default answer ""
set shell_cmd to text returned of shell_script
set shell_args to display dialog "please input args and delimiters with ---" default answer ""
set AppleScript's text item delimiters to "---"
set args to every text item of ((text returned of shell_args) & "---")
tell application "Terminal"
	set current_path to POSIX path of ((path to me as text) & "::")
	log (current_path)
	reopen
	activate
	repeat with num in args
		tell application "System Events" to keystroke "t" using command down
		do script "cd " & current_path & " && " & shell_cmd & " " & num as text in front window
		delay 1
	end repeat
end tell
